From: Sander Eikelenboom Date: Tue, 8 Dec 2015 15:07:03 +0000 (+0100) Subject: Fix regression in xendomains initscript: test for privcmd char device X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2120 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=9ec68500009322fc148742d9aa85596e03c3c2be;p=xen.git Fix regression in xendomains initscript: test for privcmd char device Since commit: "xendomains initscript: test for privcmd char device" (1367e9e5ba4d1612e303123ec0bbf961100fcfa1) due to incorrect negation the xendomains initscript bails out early when both: "/dev/xen/privcmd" and "/proc/xen/privcmd" are present in dom0. Signed-off-by: Sander Eikelenboom Acked-by: Ian Jackson --- diff --git a/tools/hotplug/Linux/xendomains.in b/tools/hotplug/Linux/xendomains.in index 686f061cac..dfe0b333a3 100644 --- a/tools/hotplug/Linux/xendomains.in +++ b/tools/hotplug/Linux/xendomains.in @@ -45,7 +45,7 @@ fi # Correct exit code would probably be 5, but it's enough # if xend complains if we're not running as privileged domain -if ! [ -e /dev/xen/privcmd ] || [ -e /proc/xen/privcmd ]; then +if [ ! -e /dev/xen/privcmd ] && [ ! -e /proc/xen/privcmd ]; then exit 0 fi